/**     
 * @Title: UserService.java   
 * @Package me.springboot.service   
 * @Description: TODO
 * @author weiwei 
 * @date 2017年9月1日 上午9:55:04   
 * @version V1.0     
 */
package me.springboot.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import me.springboot.model.Authority;
import me.springboot.model.User;
import me.springboot.vo.UserCreateForm;

import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName: UserService
 * @Description: TODO
 * @author weiwei
 * @date 2017年9月1日 上午9:55:04
 * 
 */
public interface UserService {

	User create(UserCreateForm form);

	User queryUserByUsername(String username);

	Object uploadImage(MultipartFile file, HttpServletRequest request);

	User getCurrentUser();

	String getCurrentUsername();

	Object listAllUsers(Pageable p);

	Object getUserList(int current, int rowCount, String searchPhrase);

	List<Authority> queryByUsername(String username);
}
